package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class Reason implements Sequenceable, Serializable {


    @SerializedName("simpleText")
    private String simpleText;


    public static final Sequenceable.Producer<Reason> CREATOR = new Producer<Reason>() {
        @Override
        public Reason createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            Reason reason = new Reason();
            reason.unmarshalling(parcel);
            return reason;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.simpleText);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.simpleText=parcel.readString();
        return true;
    }

    @Override
    public String
    toString() {
        return "Reason{" +
                "simpleText='" + simpleText + '\'' +
                '}';
    }

    public String getSimpleText() {
        return simpleText;
    }

    public void setSimpleText(String simpleText) {
        this.simpleText = simpleText;
    }
}
